package com.hengda.museumonline.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author：JFWU on 2016/9/23 09:37
 * @E-mail：jeffy12138@126.com
 */
public class LoginBean implements Parcelable {


    /**
     * status : 1
     * data : {"id":"280","user_login":"404407685@qq.com","user_nicename":"jfwu","user_email":"404407685@qq.com","avatar":"http://www.wenbozaixian.com/data/upload/avatar/","sex":"0","signature":"a","type":"普通会员","user_status":"1","score":"214","mobile":"","token":"MTIzNDU2NzhDVEk0TUE9PVJ2a0c3QjJQ"}
     * msg :
     */

    private int status;
    /**
     * id : 280
     * user_login : 404407685@qq.com
     * user_nicename : jfwu
     * user_email : 404407685@qq.com
     * avatar : http://www.wenbozaixian.com/data/upload/avatar/
     * sex : 0
     * signature : a
     * type : 普通会员
     * user_status : 1
     * score : 214
     * mobile :
     * token : MTIzNDU2NzhDVEk0TUE9PVJ2a0c3QjJQ
     */

    private DataBean data;
    private String msg;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean implements Parcelable {
        private String id;
        private String user_login;
        private String user_nicename;
        private String user_email;
        private String avatar;
        private String sex;
        private String signature;
        private String type;
        private String user_status;
        private String score;
        private String mobile;
        private String token;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUser_login() {
            return user_login;
        }

        public void setUser_login(String user_login) {
            this.user_login = user_login;
        }

        public String getUser_nicename() {
            return user_nicename;
        }

        public void setUser_nicename(String user_nicename) {
            this.user_nicename = user_nicename;
        }

        public String getUser_email() {
            return user_email;
        }

        public void setUser_email(String user_email) {
            this.user_email = user_email;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getSignature() {
            return signature;
        }

        public void setSignature(String signature) {
            this.signature = signature;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getUser_status() {
            return user_status;
        }

        public void setUser_status(String user_status) {
            this.user_status = user_status;
        }

        public String getScore() {
            return score;
        }

        public void setScore(String score) {
            this.score = score;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.user_login);
            dest.writeString(this.user_nicename);
            dest.writeString(this.user_email);
            dest.writeString(this.avatar);
            dest.writeString(this.sex);
            dest.writeString(this.signature);
            dest.writeString(this.type);
            dest.writeString(this.user_status);
            dest.writeString(this.score);
            dest.writeString(this.mobile);
            dest.writeString(this.token);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.id = in.readString();
            this.user_login = in.readString();
            this.user_nicename = in.readString();
            this.user_email = in.readString();
            this.avatar = in.readString();
            this.sex = in.readString();
            this.signature = in.readString();
            this.type = in.readString();
            this.user_status = in.readString();
            this.score = in.readString();
            this.mobile = in.readString();
            this.token = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.status);
        dest.writeParcelable(this.data, flags);
        dest.writeString(this.msg);
    }

    public LoginBean() {
    }

    protected LoginBean(Parcel in) {
        this.status = in.readInt();
        this.data = in.readParcelable(DataBean.class.getClassLoader());
        this.msg = in.readString();
    }

    public static final Parcelable.Creator<LoginBean> CREATOR = new Parcelable.Creator<LoginBean>() {
        @Override
        public LoginBean createFromParcel(Parcel source) {
            return new LoginBean(source);
        }

        @Override
        public LoginBean[] newArray(int size) {
            return new LoginBean[size];
        }
    };
}
